package com.congwulin.wechat.RabbitMQ;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@RabbitListener(queues = "fanout.B")
@Component
public class FanoutReceiverB {
    @RabbitHandler
    public void process(String msg){
        System.out.println("fanout Receiver B: "+msg);
    }
}
